import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
import { Switch } from 'ant-design-vue';
import { useMessage } from '/@/hooks/web/useMessage';
import { h } from 'vue';
export const columns: BasicColumn[] = [
  {
    title: '用户id',
    dataIndex: 'userId',
    width: 300,
  },
  {
    title: '签到积分',
    dataIndex: 'point',
    width: 120,
  },
  {
    title: '修改时间',
    dataIndex: 'gmtModified',
  }
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'userId',
    label: '用户id',
    component: 'Input',
    colProps: { span: 8 },
  },
  {
    field: 'point',
    label: '积分数',
    component: 'Input',
    colProps: { span: 5 },
  },
];

export const signPointFormSchema: FormSchema[] = [
  
  {
    field: 'userId',
    label: '用户id',
    component: 'Input',
    required: true,
  },
  {
    field: 'point',
    label: '签到积分',
    component: 'Input',
    required: true,
  },
];
